package com.seafwg.controller;

import com.seafwg.service.AccountService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author seafwg
 * @Date 2022/3/23 6:54 下午
 * @Version 1.0
 * @description xxx
 */

@RestController
public class AccountController {

    @Resource
    private AccountService accountService;

    @RequestMapping("/account")
    public String testTransactional() {
        accountService.transfor("tom", "lucy", 500);

        return "OK";
    }
}
